import { createRouter, createWebHistory } from 'vue-router';
import Login from '../views/Login.vue';
import ParentLogin from '../views/ParentLogin.vue';
import ParentViewLetter from '../views/ParentViewLetter.vue';
import ParentChat from '../views/ParentChat.vue';
import ParentMoreFeatures from '../views/ParentMoreFeatures.vue';
import ParentGradeQuery from '../views/ParentGradeQuery.vue';
import ParentLeaveApplication from '../views/ParentLeaveApplication.vue';
import ParentSchoolNotice from '../views/ParentSchoolNotice.vue';
import CounselorCustomSend from '../views/CounselorCustomSend.vue';
import CounselorFamilyChat from '../views/CounselorFamilyChat.vue';
import CounselorHolidayReport from '../views/CounselorHolidayReport.vue';
import CounselorSurveyTemplate from '../views/CounselorSurveyTemplate.vue';
import CounselorSurveyView from '../views/CounselorSurveyView.vue';
import AdminLetterStat from '../views/AdminLetterStat.vue';
import AdminMemberManage from '../views/AdminMemberManage.vue';
import Counselor from '../views/Counselor.vue';
import Admin from '../views/Admin.vue';
import ResetPassword from '../views/ResetPassword.vue';
import ParentLogin from '../views/parent/ParentLogin.vue';
import ParentViewLetter from '../views/parent/ParentViewLetter.vue';
import ParentChat from '../views/parent/ParentChat.vue';
import ParentMoreFeatures from '../views/parent/ParentMoreFeatures.vue';
import ParentGradeQuery from '../views/parent/ParentGradeQuery.vue';
import ParentLeaveApplication from '../views/parent/ParentLeaveApplication.vue';
import ParentSchoolNotice from '../views/parent/ParentSchoolNotice.vue';
import CounselorCustomSend from '../views/counselor/CounselorCustomSend.vue';
import CounselorFamilyChat from '../views/counselor/CounselorFamilyChat.vue';
import CounselorHolidayReport from '../views/counselor/CounselorHolidayReport.vue';
import CounselorSurveyTemplate from '../views/counselor/CounselorSurveyTemplate.vue';
import CounselorSurveyView from '../views/counselor/CounselorSurveyView.vue';
import AdminLetterStat from '../views/admin/AdminLetterStat.vue';
import AdminMemberManage from '../views/admin/AdminMemberManage.vue';
import Counselor from '../views/counselor/Counselor.vue';
import Admin from '../views/admin/Admin.vue';

const routes = [
  { path: '/', name: 'Login', component: Login },
  { path: '/parent', name: 'ParentLogin', component: ParentLogin },
  { path: '/parent/view-letter', name: 'ParentViewLetter', component: ParentViewLetter },
  { path: '/parent/chat', name: 'ParentChat', component: ParentChat },
  { path: '/parent/more-features', name: 'ParentMoreFeatures', component: ParentMoreFeatures },
  { path: '/parent/grade-query', name: 'ParentGradeQuery', component: ParentGradeQuery },
  { path: '/parent/leave-application', name: 'ParentLeaveApplication', component: ParentLeaveApplication },
  { path: '/parent/school-notice', name: 'ParentSchoolNotice', component: ParentSchoolNotice },
  { path: '/counselor/custom-send', name: 'CounselorCustomSend', component: CounselorCustomSend },
  { path: '/counselor/family-chat', name: 'CounselorFamilyChat', component: CounselorFamilyChat },
  { path: '/counselor/holiday-report', name: 'CounselorHolidayReport', component: CounselorHolidayReport },
  { path: '/counselor/survey-template', name: 'CounselorSurveyTemplate', component: CounselorSurveyTemplate },
  { path: '/counselor/survey-view', name: 'CounselorSurveyView', component: CounselorSurveyView },
  { path: '/admin/letter-stat', name: 'AdminLetterStat', component: AdminLetterStat },
  { path: '/admin/member-manage', name: 'AdminMemberManage', component: AdminMemberManage },
  { path: '/counselor', name: 'Counselor', component: Counselor },
  { path: '/admin', name: 'Admin', component: Admin },
  { path: '/reset-password', name: 'ResetPassword', component: ResetPassword },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router; 